package com.emall.member;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.http.codec.ServerCodecConfigurer;

/**
 * @author YuanShijia
 * @version 1.0.0
 * @ClassName EmallMemberApplication.java
 * @Description TODO
 * @createTime 2020年04月04日 16:44:00
 */
@EnableFeignClients(basePackages = "com.emall.member.feign")
@SpringBootApplication
@EnableDiscoveryClient
public class EmallMemberApplication {
    public static void main(String[] args) {
        SpringApplication.run(EmallMemberApplication.class, args);
    }
    @Bean
    public ServerCodecConfigurer serverCodecConfigurer() {
        return ServerCodecConfigurer.create();
    }
}
